import { http } from "@/utils/http";
import { baseUrlApi } from './utils'

// 数据来源
export const codeList = (data) => {
  return http.get(baseUrlApi('/code/list'), { data });
};

// 数据清洗接口
export const codeClean = (data) => {
  return http.post(baseUrlApi('/code/clean'), { data }, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
};

// 数据降维接口
export const codeDimreduction = (data) => {
  return http.post(baseUrlApi('/code/dimreduction'), { data }, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
};

// 数据融合接口
export const codeFusion = (data) => {
  return http.post(baseUrlApi('/code/fusion'), { data }, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
};

// 状态估计接口
export const codeEstimation = (data) => {
  return http.post(baseUrlApi('/code/estimation'), { data }, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
};

